package com.archerdu.apply.dao;

import java.util.List;

import com.archerdu.apply.model.Option;
import com.archerdu.base.dao.IBaseDao;

public interface OptionDAO extends IBaseDao<Option, Integer> {

	/**
	 * 正确答案标识
	 */
	public static final Integer ISRIGHT_RIGHT = 1;
	/**
	 * 错误答案标识
	 */
	public static final Integer ISRIGHT_WRONG = 0;
	/**
	 * 问题id名
	 */
	public static final String QUESTION_ID = "question.id";
	/**
	 * 显示状态
	 */
	public static final Integer STATE_SHOW = 0;
	/**
	 * 隐藏状态
	 */
	public static final Integer STATE_HIDDEN = 1;
	/**
	 * 根绝questionId查找备选答案，解决hibernate不识别对象的问题
	 * 
	 * @param option
	 * @return
	 */
	public List<Option> findWithQuestion( Option option );
}
